﻿using System;
using System.Diagnostics;
using System.Windows.Forms;

namespace sprocket
{
	public partial class AboutDlg : Form
	{
		public AboutDlg()
		{
			InitializeComponent();

			cmdMekhano.Links.Remove( cmdMekhano.Links[0] );
			cmdMekhano.Links.Add( 0, cmdMekhano.Text.Length, cmdMekhano.Text );

			cmdCodeplex.Links.Remove( cmdCodeplex.Links[0] );
			cmdCodeplex.Links.Add( 0, cmdCodeplex.Text.Length, cmdCodeplex.Text );
		}

		private void cmdClose_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			this.Hide();
		}

		private void LinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
		{
			ProcessStartInfo psi = new ProcessStartInfo( e.Link.LinkData.ToString() );
			Process.Start( psi );
		}
	}
}